interface IIndexType {
    // [index: number]: any
    [index2: string]: any   

}

const names: IIndexType = ["abc", "cba", "bca"]
// 通过数字类型访问索引时，最终都是转换为string类型访问
const info: IIndexType = { name: "why", age: 18 }
console.log(info["name"])


export { }